﻿@model IEnumerable<Free2AskModel.Tag>
    @{
                //Free2AskModel.Free2AskDBEntities db=new Free2AskModel.Free2AskDBEntities();
                //var tags=(from t in db.Tags
                //      select t).ToList().OrderByDescending(t=>t.Frequency);

        var tags = Model.OrderByDescending(t => t.Frequency);
     }
<table>
    <tr>
        <th>Tag</th>
        <th>Frequency</th>
    </tr>
    @foreach (var t in tags)
    {
        <tr>
            <td class="txtTag"><span>@t.Name</span></td>
            <td class="txtFQ">x @t.Frequency.ToString()</td>
        </tr>
    }
</table>